package com.css.fxfzysx.modules.vulnerabilityStatistics;

import cn.hutool.core.io.FileUtil;
import com.css.fxfzysx.base.response.RestResponse;
import com.css.fxfzysx.modules.cztDataMange.service.BacInformationService;
import com.css.fxfzysx.modules.cztDataMange.vo.BacInformationVo;
import com.css.fxfzysx.modules.cztDataMange.vo.QueryBacInformationVo;
import com.css.fxfzysx.modules.vulnerabilityStatistics.service.VulStatisticsService;
import com.css.fxfzysx.modules.vulnerabilityStatistics.service.impl.VulStatisticsServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * 建筑物区域特征信息导入
 */
@RestController
@RequestMapping("vulStatistics")
@Slf4j
public class VulStatisticsController {

    @Autowired
    private VulStatisticsService vulStatisticsService;

    /**
     * 统计
     * @param province
     * @return
     */
    @GetMapping("statistics")
    public RestResponse queryBacInformation(@RequestParam("province")String province) {
        return vulStatisticsService.statistics(province);
    }
}
